home *** CD-ROM | disk | FTP | other *** search
- /*
- any_check: check a value and make sure it has not changed at all.
-
- Kenneth Ingham
-
- Copyright (C) 1988 The University of New Mexico
- */
-
- #include "defs.h"
-
- any_check(value, last, cmd, name, line)
- char *value;
- struct everything *last;
- char *cmd, *name, *line;
- {
- extern int line_ok;
- char *to_string(), *previous;
-
- previous = to_string(last);
- if (strcmp(value, previous) != 0) {
- if (line_ok) {
- printf("%s has a value which changed:\n", cmd);
- printf("%s\n",line);
- }
- else
- printf("Also, it had a string value change:\n");
-
- printf("where %s = '%s'; it was '%s'", name, value, previous);
- printf("\n");
- line_ok = False;
- }
- }
-